package com.hzz.springcloudclient2.controller;

import com.hzz.springcloudclient2.feignClient.DepositClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：hzz
 * @description：TODO
 * @date ：2021/6/25 17:17
 */
@RestController
@RequestMapping("/client2")
public class HelloController {

    @Autowired
    private DepositClient depositClient;

    @RequestMapping("/hello")
    public String hello(){
        return depositClient.hello1();
    }
}
